<!DOCTYPE html>
<html lang="en" xmlns:zxw="http://www.w3school.com.cn" xmlns:njzxw="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>首页</title>
    <link rel="stylesheet" href="../../../js/common/layui/css/layui.css">
    <link rel="stylesheet" href="../../../css/common/animate.css" />
    <link rel="stylesheet" href="../../../css/common/bootstrap/css/bootstrap.css" />
    <link rel="stylesheet" href="../../../css/common/bootstrap/treeview/bootstrap-treeview.css" />
    <link rel="stylesheet" href="../../../css/common/common.css" />
    <style type="text/css">
        .layui-upload-drag img{
            width: 100px;
            height: 100px;
        }
        .layui-field-title{
            border-width: 1px;
            padding: 10px;
            border-radius: 5px;
        }
    </style>
</head>
<body class="layout-zxw" >

    <form action="" id="form1" class="layui-form layui-fluid" lay-filter="form1" >

        <fieldset class="layui-elem-field layui-field-title">
            <legend>基本信息</legend>
            <div class="layui-row layui-center" >
                <div class="layui-upload-drag" id="upload">
                    <img src="../../../img/headDefout.jpg">
                    <input type="hidden" id="headimg" name="headimg" value="" >
                    <input type="hidden" id="headid" name="headid" value="" >
                    <p>点击上传图像，或将文件拖拽到此处</p>
                </div>
            </div>
            <div class="layui-field-box row">
                <zxw:input id="name" type="text" parcel="true" parcelName="姓名" parcelclass="col-xs-12 col-sm-6" inline="true" value="" maxlength="10" name="name" lay_verify="required" class="" ></zxw:input>
                <zxw:input id="mobile" name="mobile" maxlength="11" parcel="true" parcelName="号码" inline="true" parcelclass="col-xs-12 col-sm-6" lay_verify="phone" ></zxw:input>
            </div>
            <div class="layui-field-box row">
                <zxw:input id="email" type="text" name="email" lay_verify="email" inline="true" parcelclass="col-xs-12 col-sm-6" parcel="true" parcelName="email" ></zxw:input>
                <zxw:input id="bir" name="bir" type="date" lay_verify="date" inline="true" parcelclass="col-xs-12 col-sm-6" parcel="true" parcelName="生日" ></zxw:input>
            </div>
            <zxw:textarea id="addr" name="addr" placeholder="请输入内容" parcel="true" parcelName="地址" ></zxw:textarea>
        </fieldset>
        <fieldset class="layui-elem-field layui-field-title">
            <legend>权限信息</legend>
            <div class="layui-field-box row">
                <div class="layui-inline col-xs-12 col-sm-6">
                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>部门选择</legend>
                        <div class="layui-field-box">
                            <zxw:input id="orgStr" type="hidden" name="orgStr" value="" ></zxw:input>
                            <!--<input type="hidden" id="orgStr" lay-verify="requiredOrg" name="orgStr" value="" />-->
                            <input type="text" name="orgMenumenutitle" id="orgMenumenutitle" placeholder="请输入组织名称查询" autocomplete="off" class="layui-input">
                            <br>
                            <div id="orgMenu" ></div>
                        </div>
                    </fieldset>
                </div>
                <div class="layui-inline col-xs-12 col-sm-6">
                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>角色选择</legend>
                        <div class="layui-field-box">
                            <zxw:input id="roleStr" type="hidden" name="roleStr" value="" ></zxw:input>
                            <input type="text" name="roleMenumenutitle" id="roleMenumenutitle" placeholder="请输入角色名称查询" autocomplete="off" class="layui-input">
                            <br>
                            <div id="roleMenu" ></div>
                        </div>
                    </fieldset>
                </div>
                <div class="layui-inline col-xs-12 col-sm-12 orgManagediv">
                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>部门管理选择</legend>
                        <blockquote class="layui-elem-quote layui-quote-nm">
                            1、部门管理选择与部门选择为2个概念，请勿混淆.<br />
                            2、部门管理员管理此部门所有内容，主要体现在权限控制上，比如张三在A部门，A部门有员工B跟C那么，张三为A部门管理员情况下可以看到B与C的工单情况，否则各自看各自处理各自.
                        </blockquote>
                        <div class="layui-field-box">
                            <zxw:input id="orgManagerStr" type="hidden" name="orgManagerStr" value="" ></zxw:input>
                            <!--<input type="hidden" id="orgStr" lay-verify="requiredOrg" name="orgStr" value="" />-->
                            <input type="text" name="orgruleMenumenutitle" id="orgruleMenumenutitle" placeholder="请输入组织名称查询" autocomplete="off" class="layui-input">
                            <br>
                            <div id="orgRuleMenu" ></div>
                        </div>
                    </fieldset>
                </div>
            </div>
        </fieldset>
    </form>

    <script type="application/javascript" src="../../../js/common/own/own.js?layui,jquery,treeview,njzxw,URL,adduser" >
        njzxw.layui.val({
            url:URL.USER.GETMAP,
            fun:function(data){
                $('#upload img').attr('src',data.head_img);
                $('#headid').val(data.headimg);
                $('#headimg').val('');
            }
        });
        njzxw.layui.submit({
            url:URL.USER.SAVEUSER,
            againparams:adduser.save
        });
        adduser.init();

    </script>
</body>
</html>